'use strict';

module.exports = app => {
  const { STRING, INTEGER } = app.Sequelize;

  const Education = app.model.define('educations', {
    id: { type: INTEGER, primaryKey: true, autoIncrement: true },
    personnelId: INTEGER,
    userName: STRING,
    admission: STRING,
    graduation: STRING,
    school: STRING,
    major: STRING,
    creation: STRING,
    qualifications: STRING,
  });

  return Education;
};
